package com.yunchao.bank

import androidx.room.Room
import org.koin.dsl.module

internal val appModule = module{
    single {
        Room.databaseBuilder(
            get(),
            AppDatabase::class.java,
            "People-Bank-Business.db",
        ).build()
    }

    single { get<AppDatabase>().configureDao() }
    single { get<AppDatabase>().dispatchTaskDao() }
}